classdef sp_data < hgsetget
    properties
    x
    y
    e
    xlabel
    ylabel
    identifier
    end
    
    methods
        function obj = sp_data(varargin)
            
            if nargin == 0
               obj.x=zeros(0,1);
               obj.y=zeros(0,1); 
               obj.e=zeros(0,1); 
            end
            
            if nargin == 3
                [obj.x, obj.y, obj.e]=validateData(varargin{1}, varargin{2}, varargin{3});
            end
            
        end
        
    end
       
end